package ade.prime.activity;

import ade.prime.database.Database;
import android.content.Context;

public class MyApplication {
	
	private static MyApplication instance = null ;
	
	private Database db ;

	protected MyApplication(Context context) {
		super() ;
		this.db = new Database(context) ;
	}
	
	public static void initialize(Context context) {
		if (instance == null) {
			instance = new MyApplication(context) ;
		}// if
	}
	
	public static MyApplication getInstance() {
		return MyApplication.instance ;
	}
	
	public static Database getDatabase() {
		return instance.db ;
	}

}
